﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DONGACS.Assembler;
using DONGACS.DAO;
using DONGACS.Domain;
using DONGACS.DTO;
using DONGACS.SERVICE.Base;

namespace DONGACS.SERVICE
{
    public class UserInJobTitleInDepartmentService : BaseService<UserInJobTitleInDepartmentDto, UserInJobTitleInDepartment>
    {
        UserInJobTitleInDepartmentAssembler UserInJobTitleInDepartmentAssembler = new UserInJobTitleInDepartmentAssembler();
        UserInJobTitleInDepartmentDao UserInJobTitleInDepartmentDao = new UserInJobTitleInDepartmentDao();

        public IList<UserInJobTitleInDepartmentDto> GetUserInJobTitleInDepartmentByUserId(string userId)
        {
            return
                this.UserInJobTitleInDepartmentAssembler.ConvertToDataTransferObjectList(
                    this.UserInJobTitleInDepartmentDao.GetUserInJobTitleInDepartmentByUserId(userId));
        }

        public bool DeleteUserInJobTitleInDepartmentByUserId(string userId)
        {
            return this.UserInJobTitleInDepartmentDao.DeleteUserInJobTitleInDepartmentByUserId(userId);
        }
        
    }
}
